{anchor:msg_retrieveprincipalaccess_0}
!! RetrievePrincipalAccess message
!!! Constructor
!!!! new COSA.Request.RetrievePrincipalAccess(principal, target, requestId)
|| Param || Type || Description ||
| principal | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Principal |
| target | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Target |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Properties
|| Name || Type || Description ||
| principal | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Principal |
| target | [COSA.EntityReference|COSA Namespace#lib_entityreference_0] | Target |
| requestId _(optional)_ | {{string}} | Request unique identifier (GUID) |
!!! Example
{code:javascript}
var retrievePrincipalAccess_0 = new COSA.Request.RetrievePrincipalAccess(
        new COSA.EntityReference('systemuser', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'),
        new COSA.EntityReference('contact', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX')
    );

//message execution
retrievePrincipalAccess_0.execute(function ( r ) {
	//working with a response
});
//or
COSA.Request.Execute(retrievePrincipalAccess_0, function ( r ) {
	//working with a response
});
{code:javascript}

[Back to Top|#tbl_contents_0]